<script setup lang="ts">
import { inject, type Ref } from 'vue';


const money = inject<Ref<number, number>>('money')

const changeMoney = inject<(newMoney: number) => void>('changeMoney')

// changeMoney()


</script>

<template>
  <div class="child-page" style="padding: 50px; border: 10px solid #ccc">
    child 组件 -- {{ money }}<button>修改count</button>
  </div>
</template>
